package thistest;

public class MemberThis {
	
	private int number;
	private String name;
	
	// 생성자
	public MemberThis(String name, int number) {
		this.name = name;
		this.number = number;
		System.out.println("this.print() 호출 -------");
		this.print();
		System.out.println("print() 호출 -------");
		print();
	}
	
	public void print() {
		System.out.println("this: " + this);
		System.out.println("this.name: " + this.name);
		System.out.println("this.number: " + this.number);
	}
	
	public static void main(String[] args) {
		
		MemberThis m = new MemberThis("홍길동", 123);
		
	}
	
}




















